/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package tictactoe;

/**
 *
 * @author andres
 */
public class tictactoegui extends javax.swing.JFrame {

    /**
     * Creates new form tictactoegui
     */
    public tictactoegui() {
        initComponents();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        pTablero = new javax.swing.JPanel();
        pEspacio1 = new javax.swing.JButton();
        pEspacio2 = new javax.swing.JButton();
        pEspacio3 = new javax.swing.JButton();
        pEspacio4 = new javax.swing.JButton();
        pEspacio5 = new javax.swing.JButton();
        pEspacio6 = new javax.swing.JButton();
        pEspacio7 = new javax.swing.JButton();
        pEspacio8 = new javax.swing.JButton();
        pEspacio9 = new javax.swing.JButton();
        mBarra = new javax.swing.JMenuBar();
        File = new javax.swing.JMenu();
        mMenu = new javax.swing.JMenu();
        mNuevoj = new javax.swing.JMenuItem();
        mSalir = new javax.swing.JMenuItem();
        About = new javax.swing.JMenu();
        mAcerca = new javax.swing.JMenuItem();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        pEspacio1.setFont(new java.awt.Font("Tahoma", 1, 24)); // NOI18N
        pEspacio1.setText("1");

        pEspacio2.setFont(new java.awt.Font("Tahoma", 1, 24)); // NOI18N
        pEspacio2.setText("2");

        pEspacio3.setFont(new java.awt.Font("Tahoma", 1, 24)); // NOI18N
        pEspacio3.setText("3");

        pEspacio4.setFont(new java.awt.Font("Tahoma", 1, 24)); // NOI18N
        pEspacio4.setText("4");

        pEspacio5.setFont(new java.awt.Font("Tahoma", 1, 24)); // NOI18N
        pEspacio5.setText("5");

        pEspacio6.setFont(new java.awt.Font("Tahoma", 1, 24)); // NOI18N
        pEspacio6.setText("6");

        pEspacio7.setFont(new java.awt.Font("Tahoma", 1, 24)); // NOI18N
        pEspacio7.setText("7");
        pEspacio7.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                pEspacio7ActionPerformed(evt);
            }
        });

        pEspacio8.setFont(new java.awt.Font("Tahoma", 1, 24)); // NOI18N
        pEspacio8.setText("8");

        pEspacio9.setFont(new java.awt.Font("Tahoma", 1, 24)); // NOI18N
        pEspacio9.setText("9");

        javax.swing.GroupLayout pTableroLayout = new javax.swing.GroupLayout(pTablero);
        pTablero.setLayout(pTableroLayout);
        pTableroLayout.setHorizontalGroup(
            pTableroLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pTableroLayout.createSequentialGroup()
                .addGap(33, 33, 33)
                .addGroup(pTableroLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(pEspacio7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(pEspacio4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(pEspacio1, javax.swing.GroupLayout.DEFAULT_SIZE, 103, Short.MAX_VALUE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(pTableroLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(pEspacio2, javax.swing.GroupLayout.DEFAULT_SIZE, 103, Short.MAX_VALUE)
                    .addComponent(pEspacio5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(pEspacio8, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addGap(18, 18, 18)
                .addGroup(pTableroLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(pEspacio3, javax.swing.GroupLayout.DEFAULT_SIZE, 103, Short.MAX_VALUE)
                    .addComponent(pEspacio6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(pEspacio9, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap(30, Short.MAX_VALUE))
        );
        pTableroLayout.setVerticalGroup(
            pTableroLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pTableroLayout.createSequentialGroup()
                .addGap(39, 39, 39)
                .addGroup(pTableroLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(pEspacio3, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(pTableroLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(pEspacio1, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(pEspacio2, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGap(28, 28, 28)
                .addGroup(pTableroLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(pEspacio4, javax.swing.GroupLayout.DEFAULT_SIZE, 85, Short.MAX_VALUE)
                    .addComponent(pEspacio5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(pEspacio6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addGap(27, 27, 27)
                .addGroup(pTableroLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(pEspacio7, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(pEspacio9, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(pTableroLayout.createSequentialGroup()
                        .addGap(1, 1, 1)
                        .addComponent(pEspacio8, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                .addContainerGap(50, Short.MAX_VALUE))
        );

        File.setText("File");

        mMenu.setText("Menú");

        mNuevoj.setIcon(new javax.swing.ImageIcon(getClass().getResource("/tictactoe/add.png"))); // NOI18N
        mNuevoj.setText("Nuevo Juego");
        mMenu.add(mNuevoj);

        mSalir.setIcon(new javax.swing.ImageIcon(getClass().getResource("/tictactoe/del.png"))); // NOI18N
        mSalir.setText("Salir");
        mMenu.add(mSalir);

        File.add(mMenu);

        mBarra.add(File);

        About.setText("About");

        mAcerca.setText("Acerca De");
        About.add(mAcerca);

        mBarra.add(About);

        setJMenuBar(mBarra);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(pTablero, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(pTablero, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void pEspacio7ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_pEspacio7ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_pEspacio7ActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(tictactoegui.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(tictactoegui.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(tictactoegui.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(tictactoegui.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new tictactoegui().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JMenu About;
    private javax.swing.JMenu File;
    private javax.swing.JMenuItem mAcerca;
    private javax.swing.JMenuBar mBarra;
    private javax.swing.JMenu mMenu;
    private javax.swing.JMenuItem mNuevoj;
    private javax.swing.JMenuItem mSalir;
    private javax.swing.JButton pEspacio1;
    private javax.swing.JButton pEspacio2;
    private javax.swing.JButton pEspacio3;
    private javax.swing.JButton pEspacio4;
    private javax.swing.JButton pEspacio5;
    private javax.swing.JButton pEspacio6;
    private javax.swing.JButton pEspacio7;
    private javax.swing.JButton pEspacio8;
    private javax.swing.JButton pEspacio9;
    private javax.swing.JPanel pTablero;
    // End of variables declaration//GEN-END:variables
}
